package com.smedi.ismedi.inmail.core.port.adapter.service;

import com.smedi.ismedi.inmail.core.application.command.MessageSendCommand;
import com.smedi.ismedi.inmail.core.domain.aggregatemodel.Person;

import java.util.List;

public interface MessageRemoteService {

    /**
     * 发送短信
     *
     * @param person 短信接收人
     * @param templateName 短信模板名称
     */
    void sendMessage(Person person,String templateName);

    void sendMessage(MessageSendCommand messageSendCommand);

    void sendMessage(List<MessageSendCommand> messageSendCommands);

}
